// src/routes/index.js
import MainView from "../views/mainView/mainView";
import DataVisualization from "../views/dataVisualization/dataVisualization";
import DataManagement from "../views/dataManagement/dataManagement";
import Information from "../views/information/information";
import Welcome from "../views/welcome/welcome";
import Debug from "../views/debugView/debug";
import Error from "../views/error/error";
// 路由配置数组（与 vue-router 配置结构相似）
export const routes = [
  {
    path: '/',
    element: <Welcome />,
    meta: { title: 'welcome'}
  },
  {
    path: '/home',
    element: <MainView />,
    meta: { title: 'Home' },
    children: [
      {
        path: "/home/dataVisualization",
        element: <DataVisualization />,
        meta: { title: '数据可视化' }
      },
      {
        path: "/home/dataManagement",
        element: <DataManagement />,
        meta: { title: '数据管理' }
      },
      {
        path: "/home/information",
        element: <Information />,
        meta: { title: "讯息" }
      },
      {
        path: "/home/debug",
        element: <Debug />,
        meta: { title: 'DEBUG' }
      }
    ]
  },
  {
    path: "*",
    element: <Error />,
    meta: { title: 'Error' }
  }
];

// export const routes = []; // debug // todo